<?php /* For Create */ $table->timestamp('created_at')->useCurrent(); /* For Update */ $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate();